package com.scm.biz.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.scm.biz.bean.ProductionPattern;
import com.scm.biz.dto.ProductionNoticeDto;
import com.scm.biz.result.ProductionDetailResult;
import com.scm.biz.result.ProductionNoticeResult;
import com.scm.core.bean.exp.UfdmException;

public interface ProductionPatternService {
	public void insert(ProductionPattern productionPattern);
	public void update(ProductionPattern productionPattern);
	public void saveLastProduce(ProductionPattern productionPattern,MultipartFile[] lastFile,MultipartFile[] middleFile) throws UfdmException;
	public void saveProduceDate(ProductionPattern productionPattern);

	public void saveTmFile(ProductionPattern productionPattern,MultipartFile file) throws UfdmException ;
	public ProductionPattern selectById(Long id);
	public List<ProductionPattern> selectByProductionOrderId(Long productionOrderId);
	/**
	 * 获取大货通知单相关信息
	 * @param ids
	 * @return
	 */
	public List<ProductionDetailResult> selectProductionDetail(List<Long> ids);
	/**
	 * 插入大货通知单
	 * @param productionNoticeDtos
	 */
	public void insertProductionNotice(List<ProductionNoticeDto> productionNoticeDtos) throws UfdmException;
	
	/**
	 * 获取大货生产通知单列表
	 * @param ids
	 * @return
	 */
	public List<ProductionNoticeResult> selectProdutionNotice(List<Long> ids);
}
